package com.example.foodsy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 批发商产品批号信息表
 * </p>
 *
 * @author cgc
 * @since 2025-09-23
 */
@Getter
@Setter
@TableName("whol_info")
@ApiModel(value = "WholInfo对象", description = "批发商产品批号信息表")
public class WholInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "wb_id", type = IdType.AUTO)
    private Integer wbId;

    @ApiModelProperty("所属批发商产品批号")
    @TableField("batch_id")
    private String batchId;

    @ApiModelProperty("所属批发商编号")
    @TableField("whol_id")
    private Integer wholId;

    @ApiModelProperty("所属屠宰企业进场编号")
    @TableField("sb_id")
    private Integer sbId;

    @ApiModelProperty("产品品种")
    @TableField("type")
    private String type;

    @ApiModelProperty("批号录入日期")
    @TableField("batch_date")
    private LocalDate batchDate;

    @ApiModelProperty("批号状态：1：新建；2：待确认；3：已确认；4：已下架；")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("备注")
    @TableField("remarks")
    private String remarks;
}
